var path = require("path")
module.exports = (req,res)=>{
    if(req.session.username){
        res.sendFile(path.resolve("./")+"/public/outline.html")
    } else{
        res.cookie('message',JSON.stringify({
            status:'error',
            link:'/login',
            linkText:'登录',
            msg:'请先登录'
        }))
        res.sendFile(path.resolve("./")+"/public/message.html")
    }
}